<!DOCTYPE html>
<html>
<head><title>Fortunes</title></head>
<body>
<table>
<tr><th>id</th><th>message</th></tr>
<?php foreach($fortunes as $fortune):?>
<tr><td><?php echo $fortune->id?></td><td><?php echo htmlentities($fortune->message)?></td></tr>
<?php endforeach;?>
</table>
</body>
</html>